package com.test.gwt.mvp.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

public class MailDetailViewImpl extends Composite implements MailDetailView {

	private static MailDetailViewImplUiBinder uiBinder = GWT
			.create(MailDetailViewImplUiBinder.class);

	interface MailDetailViewImplUiBinder extends
			UiBinder<Widget, MailDetailViewImpl> {
	}

	
	@UiField
	TextBox sender;
	@UiField
	TextBox subject;
	@UiField
	TextArea body;
	
	
	public MailDetailViewImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public TextBox getSender() {
		return sender;
	}

	@Override
	public TextBox getSubject() {
		return subject;
	}

	@Override
	public TextArea getBody() {
		return body;
	}

}
